package cn.iune.erp.provider;

import java.sql.Date;
import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface IFileProviderService extends IBizDataIface {

	void insert(FileProvider obj);

	List<FileProvider> getAll();

	FileProvider getByID(String fID);
	
	FileProvider getByNo(String providerNo, String enterpriseNo);


	FileProvider getByLoginName(String sLoginName);

	void delete(String fID);

	//更新初次交易时间
	int updateDealDateFirst(FileProvider fc, Date dealDate);

	//更新最近交易时间
	int updateDealDateLast(FileProvider fc, Date dealDate);

	JSONObject queryUNION(JSONObject data) ;

	JSONObject save(JSONObject object) throws ParseException;

	JSONObject saveDetail(JSONObject object) throws ParseException;

	JSONObject newDataDetail(JSONObject param);

	JSONObject queryDataDetail(JSONObject param);


	void beforeDelete(String fID);

	void beforeInsert(FileProvider obj);

	void afterInsert(FileProvider obj);

	List<FileProvider> getList(String enterpriseNo);


}